<?php if (!defined('THINK_PATH')) exit();?>﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html;charset=utf-8;" />

<link rel="stylesheet" type="text/css" href="/dqchat/Public/css/inform.css">
<link rel="stylesheet" type="text/css" href="/dqchat/Public/css/inform.css">
<style>
.month.box1 .mypopular_detail { display:none;}
.month.box1 .mypopular_detail.pop_show {display:block;}

</style>
<script type="text/javascript" src="/dqchat/Public/js/jquery-1.11.0.min.js" ></script>
<script>
	$(function(){
		$('.mypopular_button2').hover(function(){
			index = $('.mypopular_button2').index($(this));
			$('.mypopular_button2').removeClass('mypopular_button1');
			$(this).addClass('mypopular_button1');
			$('.month.box1 .mypopular_detail').removeClass('pop_show');
			$('.month.box1 .mypopular_detail').eq(index).addClass('pop_show');
		})
	})
</script>

</head>


<body>
<div class="main_wrap">
<div class="zt" id="zt">
	<script>


$(function(){
	$('.submenu li').hover(function(){
		if(!$(this).hasClass('chover')){
		 $('.submenu li').removeClass('hover');
		 $(this).addClass('hover');
		 }
	},function(){
	$(this).removeClass('hover');
	
	})
	Height1 = $('.yinfor').height();
	Height2 = $('.leftnavi').height();
	if(Height1<Height2){
		$('.yinfor').height(Height2);
	}
	<?php  if(!empty($_GET['menu'])){ ?>
		id=<?php echo I('get.menu');?>;	
		$('.submenu li').eq(id-1).addClass('chover');
	<?php }?>

	
	
	$('.userNav dt:gt(0)').click(function(){
	   if($(this).siblings('dd').css("display")=='none'){
				$(this).siblings('dd').css("display",'block');
				$(this).css('background-image','url("/dqchat/Public/img/tb1.jpg")');					
		}else{
				$(this).siblings('dd').css("display",'none');
				$(this).css('background-image','url("/dqchat/Public/img/tb.jpg")');					
			}	
		})
		


})
</script>

	<div class="leftnavi">
		<div class="yh">
			<div class="yh_head">
				<div class="yh_pic">
					<img src="/dqchat/Public/img/head/<?php echo I('session.cidiograph');?>-1.png" width="56" height="56"/>
				</div>
				<div class="yh_account">
					<p class="yh_nic"><?php echo I('session.calias');?></p>
					<p class="yh_id">ID：<?php echo I('session.menuid');?></p>
				</div>
				<div style="clear:both"></div>
			</div>					
		</div>
<style>
.userNav{width:100%;color:#787878;font-family:"微软雅黑";}
.navItem{margin-bottom:1px;cursor:pointer;}
.navItem.nomargin{margin-bottom:0px;}
.navItem dt {background:url(/dqchat/Public/img/tb1.jpg) no-repeat 190px 5px #dedede;height:30px;line-height:30px;font-size:16px;}
.submenu li {margin-bottom:1px;cursor:pointer;font-size:12px;padding-left:38px;height:25px; line-height:25px;}
.submenu li.hover,.submenu li.chover{background:#ccc;color:#000;}
.submenu li.chover {cursor:text;}
.navItem dt.nopic {background-image:none;background-color:#c8c8c8;color:#000;}
.navItem dt div {float:left;}
.navItem dd{width:100%;}
.navPic {margin-top:2px;}
.navPic{margin-left:12px;}
</style>
		<div class="userNav">
			<dl class="navItem nomargin">
				<dt class="nopic" onclick=window.location.href="<?php echo U('User/index');?>"><div class="navPic"><img  src="/dqchat/Public/img/zhanghu.jpg" /></div><div class="navTitle">账户管理</div></dt>
			</dl>
			<dl class="navItem">
				<dt><div class="navPic"><img  src="/dqchat/Public/img/fangjian.jpg" /></div><div class="navTitle">房间管理</div></dt>
				<dd>
					<ul class="submenu">
						<li onclick=window.location.href="<?php echo U('Room/index');?>?menu=1">我的房间</li>					
						<li onclick=window.location.href="<?php echo U('Room/wheat');?>?menu=2">上麦记录</li>					
					</ul>
				</dd>
			</dl>
			<dl class="navItem">
				<dt><div class="navPic"><img  src="/dqchat/Public/img/liwu.jpg" /></div><div class="navTitle">礼物管理</div></dt>
				<dd>
					<ul class="submenu">
						<li onclick=window.location.href="<?php echo U('Gift/giftflow');?>?menu=3">礼金流水</li>
						<li onclick=window.location.href="<?php echo U('Gift/index');?>?menu=4">送出的礼物</li>
						<li onclick=window.location.href="<?php echo U('Gift/mygift');?>?menu=5">收到的礼物</li>
					</ul>
				</dd>
				
			</dl>
			<dl class="navItem">
				<dt><div class="navPic"><img  src="/dqchat/Public/img/game.jpg" /></div><div class="navTitle">游戏管理</div></dt>
				<dd>
					<ul class="submenu">
						<li onclick=window.location.href="<?php echo U('Game/index');?>?menu=6">车行流水</li>
					</ul>
				</dd>
			</dl>			
			<dl class="navItem">
				<dt><div class="navPic"><img  src="/dqchat/Public/img/zijin.jpg" /></div><div class="navTitle">资金管理</div></dt>
				<dd>
					<ul class="submenu">
						<li onclick=window.location.href="<?php echo U('Money/index');?>?menu=7">金币流水</li>
						<?php if(I('session.ifshow') == 1): ?><li onclick=window.location.href="<?php echo U('Money/spendMoney');?>?menu=8">划币管理</li>
						<li onclick=window.location.href="<?php echo U('Money/mybox');?>?menu=9">我的保险箱</li>
					</ul>
				</dd>
			</dl>	
			<dl class="navItem">
				<dt><div class="navPic"><img  src="/dqchat/Public/img/anquan.jpg" /></div><div class="navTitle">账户安全</div></dt>
				<dd>
					<ul class="submenu">
						<li onclick=window.location.href="<?php echo U('Accountsafe/resetpsw');?>?menu=10">修改密码</li>
						<li onclick=window.location.href="<?php echo U('Accountsafe/index');?>?menu=11">设置密保</li>
						<li onclick=window.location.href="<?php echo U('Accountsafe/loginRecord');?>?menu=12">登录记录</li>
						<?php else: ?>
						<li onclick=window.location.href="<?php echo U('Money/mybox');?>?menu=8">我的保险箱</li>
					</ul>
				</dd>
			</dl>	
			<dl class="navItem">
				<dt><div class="navPic"><img  src="/dqchat/Public/img/anquan.jpg" /></div><div class="navTitle">账户安全</div></dt>
				<dd>
					<ul class="submenu">
						<li onclick=window.location.href="<?php echo U('Accountsafe/resetpsw');?>?menu=9">修改密码</li>
						<li onclick=window.location.href="<?php echo U('Accountsafe/index');?>?menu=10">设置密保</li>
						<li onclick=window.location.href="<?php echo U('Accountsafe/loginRecord');?>?menu=11">登录记录</li><?php endif; ?>
					</ul>
				</dd>
			</dl>				
		</div>
	</div>
	
	<div class="yinfor">
		<div class="center_wrap">
			<div class="center_title"><h1>房间管理</h1></div>
			<p class="lr_title"><?php echo I('get.id');?>的房间人气</p>
			<div class="box">
				<div style="text-align:left;">
					<div class="mypopular_button">本&nbsp&nbsp周</div>
					<table  cellspacing=0 cellpadding=0 class="mypopular_detail">
						<tr class="mypopular_title"><td class="mypopular_menu1">人气</td><td class="mypopular_menu2">真实IP数</td><td class="mypopular_menu3">挂号数</td><td class="mypopular_menu4">排麦分</td><td class="mypopular_menu5">刷花分</td><td class="mypopular_menu6">日期</td></tr>
						<?php if(empty($Tweek)): ?><tr class="mypopular_line"><td colspan=6>无记录</td></tr><?php endif; ?>
						<?php if(is_array($Tweek)): $i = 0; $__LIST__ = $Tweek;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr class="mypopular_line"><td><?php echo ($vo["fscore"]); ?></td><td><?php echo ($vo["nip"]); ?></td><td><?php echo ($vo["nuser"]); ?></td><td><?php echo ($vo["nmic"]); ?></td><td title="<?php echo $vo['nmoney']/1000?>">
						
						<?php  $data = floor($vo['nmoney']/1000); $length = strlen($data); if($length>4&&$length<9){ $total = substr($data,0,($length-4)); echo $total."万"; }else if($length>8){ $total = substr($data,0,($length-8)); echo $total."亿"; }else{ echo $data; }; ?>
						
						</td><td><?php echo date('m-d',strtotime($vo['ddate']))?></td></tr><?php endforeach; endif; else: echo "" ;endif; ?>
						<tr class="mypopular_line" ><td colspan="6">本周人气共计：<?php echo ($Tw_popu); ?></td></tr>
					</table>
				</div>
				<div style="text-align:left;">
					<div class="mypopular_button">上&nbsp&nbsp周</div>
					<table  cellspacing=0 cellpadding=0 class="mypopular_detail">
						<tr class="mypopular_title"><td class="mypopular_menu1">人气</td><td class="mypopular_menu2">真实IP数</td><td class="mypopular_menu3">挂号数</td><td class="mypopular_menu4">排麦分</td><td class="mypopular_menu5">刷花分</td><td class="mypopular_menu6">日期</td></tr>
						<?php if(empty($Lweek)): ?><tr class="mypopular_line"><td colspan=6>无记录</td></tr><?php endif; ?>
						<?php if(is_array($Lweek)): $i = 0; $__LIST__ = $Lweek;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr class="mypopular_line"><td><?php echo ($vo["fscore"]); ?></td><td><?php echo ($vo["nip"]); ?></td><td><?php echo ($vo["nuser"]); ?></td><td><?php echo ($vo["nmic"]); ?></td><td title="<?php echo $vo['nmoney']/1000?>">
						<?php  $data = floor($vo['nmoney']/1000); $length = strlen($data); if($length>4&&$length<9){ $total = substr($data,0,($length-4)); echo $total."万"; }else if($length>8){ $total = substr($data,0,($length-8)); echo $total."亿"; }else{ echo $data; }; ?>
						</td><td><?php echo date('m-d',strtotime($vo['ddate']))?></td></tr><?php endforeach; endif; else: echo "" ;endif; ?>	
						<tr class="mypopular_line" ><td colspan="6">上周人气共计：<?php echo ($Lw_popu); ?></td></tr>
					</table>
				</div>				
				<div class="mypopular_word">说明：1、挂号数已折算；2、人气=（真实IP数*10+挂号数*3+排麦分+刷花分）（四舍五入）</div>				
			</div>
			<div class="box1 month">
				<div>
					<ul  style="text-align:left;">
						<li class="mypopular_button2 mypopular_button1">本&nbsp&nbsp月</li><li class="mypopular_button2" style="margin-left:12px;">上&nbsp&nbsp月</li>
					</ul>
					<div style="clear:both"></div>
				</div>	
				<table  cellspacing=0 cellpadding=0 class="mypopular_detail pop_show" style="margin-top:0">
					<tr class="mypopular_title"><td class="mypopular_menu1">人气</td><td class="mypopular_menu2">真实IP数</td><td class="mypopular_menu3">挂号数</td><td class="mypopular_menu4">排麦分</td><td class="mypopular_menu5">刷花分</td><td class="mypopular_menu6">日期</td></tr>
						<?php if(empty($Tmonth)): ?><tr class="mypopular_line"><td colspan=6>无记录</td></tr><?php endif; ?>
						<?php if(is_array($Tmonth)): $i = 0; $__LIST__ = $Tmonth;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr class="mypopular_line"><td><?php echo ($vo["fscore"]); ?></td><td><?php echo ($vo["nip"]); ?></td><td><?php echo ($vo["nuser"]); ?></td><td><?php echo ($vo["nmic"]); ?></td><td title="<?php echo $vo['nmoney']/1000?>">
						<?php  $data = floor($vo['nmoney']/1000); $length = strlen($data); if($length>4&&$length<9){ $total = substr($data,0,($length-4)); echo $total."万"; }else if($length>8){ $total = substr($data,0,($length-8)); echo $total."亿"; }else{ echo $data; }; ?>
						</td><td><?php echo date('m-d',strtotime($vo['ddate']))?></td></tr><?php endforeach; endif; else: echo "" ;endif; ?>
					<tr class="mypopular_line"><td colspan="6">本月人气共计：<?php echo ($Tm_popu); ?></td></tr>
				</table>
				<table  cellspacing=0 cellpadding=0 class="mypopular_detail" style="margin-top:0">
					<tr class="mypopular_title"><td class="mypopular_menu1">人气</td><td class="mypopular_menu2">真实IP数</td><td class="mypopular_menu3">挂号数</td><td class="mypopular_menu4">排麦分</td><td class="mypopular_menu5">刷花分</td><td class="mypopular_menu6">日期</td></tr>
						<?php if(empty($Lmonth)): ?><tr class="mypopular_line"><td colspan=6>无记录</td></tr><?php endif; ?>
						<?php if(is_array($Lmonth)): $i = 0; $__LIST__ = $Lmonth;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr class="mypopular_line"><td><?php echo ($vo["fscore"]); ?></td><td><?php echo ($vo["nip"]); ?></td><td><?php echo ($vo["nuser"]); ?></td><td><?php echo ($vo["nmic"]); ?></td><td title="<?php echo $vo['nmoney']/1000?>">
						<?php  $data = floor($vo['nmoney']/1000); $length = strlen($data); if($length>4&&$length<9){ $total = substr($data,0,($length-4)); echo $total."万"; }else if($length>8){ $total = substr($data,0,($length-8)); echo $total."亿"; }else{ echo $data; }; ?>
						</td><td><?php echo date('m-d',strtotime($vo['ddate']))?></td></tr><?php endforeach; endif; else: echo "" ;endif; ?>
					<tr class="mypopular_line"><td colspan="6">上月人气共计：<?php echo ($Lm_popu); ?></td></tr>
				</table>				
			</div>

			<div style="clear:both;"></div>

		</div>
		

	</div>
</div>
</div>
</body>

</html>